<h2>Sign up</h2>  
  
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>  
  <%= devise_error_messages! %>  
  
  <p><%= f.label :email %><br />  
  <%= f.text_field :email %></p>  
  
<% if @user.password_required? %>  
  <p><%= f.label :password %><br />  
  <%= f.password_field :password %></p>  
  
  <p><%= f.label :password_confirmation %><br />  
  <%= f.password_field :password_confirmation %></p>  
<% end %>  
  <p><%= f.submit "Sign up" %></p>  
<% end %>  
  
<%= render :partial => "devise/shared/links" %> 